import { memo, useState } from 'react'

function App() {
  const [count , setCount] = useState(0)
  return <div>
    <span>{count}</span>
    <button onClick={() => setCount(count + 1)}>+</button>
    <Foo1></Foo1>
  </div>
}

function Foo(props) {
  console.log(111)
  return <div>
    foo
  </div>
}

let Foo1 = memo(Foo)

export default App
